using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class CupInfo
    {
        #region CONSTRUCTORS
        public CupInfo()
        {

            this.m_cupID = Util.NULL_INT;
            this.m_cupName = Util.NULL_STRING;
            this.m_countryID = Util.NULL_INT;
            this.m_imgPath = Util.NULL_STRING;
            this.m_location = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_createdBy = Util.NULL_STRING;
            this.m_status = Util.NULL_BYTE;
        }
        public CupInfo(int cupID, string cupName, int countryID, string imgPath, string location, DateTime createdDate, string createdBy, byte status)
        {

            this.m_cupID = cupID;
            this.m_cupName = cupName;
            this.m_countryID = countryID;
            this.m_imgPath = imgPath;
            this.m_location = location;
            this.m_createdDate = createdDate;
            this.m_createdBy = createdBy;
            this.m_status = status;
        }
        public CupInfo(DataRow dRow)
        {

            this.m_cupID = (int)Util.ReplaceDBNullTo(dRow["cupID"], Util.NULL_INT);
            this.m_cupName = Util.ReplaceDBNullTo(dRow["cupName"], Util.NULL_STRING).ToString();
            this.m_countryID = (int)Util.ReplaceDBNullTo(dRow["countryID"], Util.NULL_INT);
            this.m_imgPath = Util.ReplaceDBNullTo(dRow["imgPath"], Util.NULL_STRING).ToString();
            this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private int m_cupID;
        private string m_cupName;
        private int m_countryID;
        private string m_imgPath;
        private string m_location;
        private DateTime m_createdDate;
        private string m_createdBy;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public int CupID
        {
            get
            {
                return this.m_cupID;
            }
            set
            {
                this.m_cupID = value;
            }
        }

        public string CupName
        {
            get
            {
                return this.m_cupName;
            }
            set
            {
                this.m_cupName = value;
            }
        }

        public int CountryID
        {
            get
            {
                return this.m_countryID;
            }
            set
            {
                this.m_countryID = value;
            }
        }

        public string ImgPath
        {
            get
            {
                return this.m_imgPath;
            }
            set
            {
                this.m_imgPath = value;
            }
        }

        public string Location
        {
            get
            {
                return this.m_location;
            }
            set
            {
                this.m_location = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}